// 统一请求路径前缀在libs/axios.js中修改
import {
  postJsonRequest,
  apiUrl
}
from '@/utils/request.js';
let recruitApi = {}

/**
 * @desc 表单配置接口
 * @param {*} 参数 
 */
recruitApi.config = (params) => {
  return postJsonRequest('/enterprise/job/config', params)
}

/**
 * @desc 职位列表
 * @param {*} 参数 
 */
recruitApi.index = (params) => {
  return postJsonRequest('/enterprise/job/index', params)
}

/**
 * @desc 职位详情
 * @param {*} 参数 
 */
recruitApi.detail = (params) => {
  return postJsonRequest('/enterprise/job/detail', params)
}

/**
 * @desc 求职状态更新
 * @param {*} 参数 
 */
recruitApi.statuschange = (params) => {
  return postJsonRequest('/enterprise/job/statuschange', params)
}

/**
 * @desc 个人介绍更新
 * @param {*} 参数 
 */
recruitApi.introducechange = (params) => {
  return postJsonRequest('/enterprise/job/introducechange', params)
}

/**
 * @desc 本人求职信息
 * @param {*} 参数 
 */
recruitApi.mine = () => {
  return postJsonRequest('/enterprise/job/mine')
}

/**
 * @desc 求职意向更新
 * @param {*} 参数 
 */
recruitApi.intention = (params) => {
  return postJsonRequest('/enterprise/job/intention', params)
}

/**
 * @desc 工作经历更新
 * @param {*} 参数 
 */
recruitApi.jobexp = (params) => {
  return postJsonRequest('/enterprise/job/jobexp', params)
}

/**
 * @desc 教育经历更新
 * @param {*} 参数 
 */
recruitApi.eduexp = (params) => {
  return postJsonRequest('/enterprise/job/eduexp', params)
}


/**
 * @desc 求职意向删除
 * @param {*} 参数 
 */
recruitApi.intentiondel = (params) => {
  return postJsonRequest('/enterprise/job/intentiondel', params)
}

/**
 * @desc 工作经历删除
 * @param {*} 参数 
 */
recruitApi.jobexpdel = (params) => {
  return postJsonRequest('/enterprise/job/jobexpdel', params)
}

/**
 * @desc 教育经历删除
 * @param {*} 参数 
 */
recruitApi.eduexpdel = (params) => {
  return postJsonRequest('/enterprise/job/eduexpdel', params)
}

/**
 * @desc 企业筛选人才列表
 * @param {*} 参数 
 */
recruitApi.talent = (params) => {
  return postJsonRequest('/enterprise/job/talent', params)
}

export default recruitApi;